package org.grow.yc.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: xwg
 * @CreateDate: 2024/8/29
 */

@Component
public class SomeTool {
    @Value("${label1}")
    private String label;
    public SomeTool() {

    }
//    public SomeTool(String label) {
//        this.label = label;
//    }

    public void show(int times) {
        for (int i = 0; i < times; i++) {
            System.out.println(label);
        }
    }

}
